<?php
//四十条数据接口数据
include './const.php';

$const->query("SET NAMS utf8");

$index_list = $const->query("SELECT * FROM taobaogoods limit 0,40");


$arr = [];
for ($i = 0; $i < $index_list->num_rows; $i++) {
    $arr[$i] = $index_list->fetch_assoc();
}

echo json_encode($arr);
